package com.jielihaofeng.chat.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.jielihaofeng.framework.common.entity.BaseEntity;

/**
 * 消息表
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2022-07-22
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("chat_message")
public class ChatMessageEntity extends BaseEntity {

	/**
	* 发送方id
	*/
	private Long sender;

	/**
	* 接收方id
	*/
	private Long receiver;

	/**
	* 聊天类型 0：单聊 1：群聊
	*/
	private String type;

	/**
	* 内容
	*/
	private String content;

	/**
	* 消息状态 0：已发送 1：已读
	*/
	private Integer status;

}